import { defHttp } from "@/utils/http";

// ERP 供应商产品关系API
export const gdsSuppliersApi = {
	// 获得供应商产品关系分页
	gdsSuppliersList: async (params: any) => {
		return await defHttp.get({ url: `/whs/gds-suppliers/page`, params });
	},
	// 新增供应商产品关系
	gdsSuppliersCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/gds-suppliers/create`, data });
	},

	// 修改供应商产品关系
	gdsSuppliersUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/gds-suppliers/update`, data });
	},

	// 删除供应商产品关系
	gdsSuppliersDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/gds-suppliers/delete?id=` + id });
	}
};
